package com.heatup.apt.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import java.io.Serializable;
import java.util.Date;

/**
 * 进店密码实体类
 * 
 * @author blank 2017年11月8日 下午6:00:00
 */
public class DoorAccessPwd extends BaseModel implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 8802405742731545013L;

	/** 主键 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/** 密码类型，0表示订单 1表示教练 2表示系统用户 */
	@TableField(value = "relation_type")
	private Integer relationType;

	/** 关联密码类型的id，订单id或者是教练id */
	@TableField(value = "relation_id")
	private Integer relationId;

	/** 进店密码 */
	private String password;

	/** 进店密码有效标识 0 有效 1 密码过期 */
	@TableField(value = "pwd_status")
	private String pwdStatus;

	/** 二维码门禁的完整字符串 */
	@TableField(value = "qr_code")
	private String qrCode;

	/**  备注 */
	private String remark;

	/** 进店密码的开始时间 */
	@TableField(value = "start_time")
	private Date startTime;

	/** 进店密码的结束时间  */
	@TableField(value = "end_time")
	private Date endTime;

	/** 创建时间 */
	@TableField(value = "created_time")
	private Date createdTime;

	/** 修改时间 */
	@TableField(value = "updated_time")
	private Date updatedTime;

	/** 密码所对应的门店 */
	@TableField(value = "store_id")
	private Integer storeId;

	@TableField(exist = false)
	private String storeName;//名店名称
	@TableField(exist = false)
	private Integer orderId;    //订单ID
	@TableField(exist = false)
	private Integer orderType;	//订单类型
	@TableField(exist = false)
	private String orderNumber;	//订单号码
	@TableField(exist = false)
	private Integer pwdUsedCount;	//密码使用计数
	@TableField(exist = false)
	private Integer userId;	//用户/教练/系统用户ID
	@TableField(exist = false)
    private String nickName;    //用户/教练/系统用户昵称
	@TableField(exist = false)
	private String mobile;	//用户/教练/系统用户手机号
	@TableField(exist = false)
	private Integer workoutRoomNum;	//密码所对应门店的操房 ID

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getRelationId() {
		return relationId;
	}
	public void setRelationId(Integer relationId) {
		this.relationId = relationId;
	}
	public Integer getRelationType() {
		return relationType;
	}
	public void setRelationType(Integer relationType) {
		this.relationType = relationType;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getQrCode() {
		return qrCode;
	}
	public void setQrCode(String qrCode) {
		this.qrCode = qrCode;
	}
	public String getPwdStatus() {
		return pwdStatus;
	}
	public void setPwdStatus(String pwdStatus) {
		this.pwdStatus = pwdStatus;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Date getCreatedTime() {
		return createdTime;
	}
	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}
	public Date getUpdatedTime() {
		return updatedTime;
	}
	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}
	public Integer getStoreId() {
		return storeId;
	}
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}
	public String getStoreName() {
		return storeName;
	}
	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}
    public Integer getOrderId() {
        return orderId;
    }
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
	public Integer getOrderType() {
		return orderType;
	}
	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}
    public String getOrderNumber() {
        return orderNumber;
    }
    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
	public Integer getPwdUsedCount() {
		return pwdUsedCount;
	}
	public void setPwdUsedCount(Integer pwdUsedCount) {
		this.pwdUsedCount = pwdUsedCount;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
    public String getNickName() {
        return nickName;
    }
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Integer getWorkoutRoomNum() {
		return workoutRoomNum;
	}
	public void setWorkoutRoomNum(Integer workoutRoomNum) {
		this.workoutRoomNum = workoutRoomNum;
	}
}
